package com.hd.appcommon.utils;

public class StringAlterUtils {
    public static String StringArrayToString (String[] resource){
        if(resource==null){
            return null;
        }
        StringBuffer stringBuffer = new StringBuffer();
        String result = "";
        for(int i = 0;i<resource.length;i++){
            result = stringBuffer.append(resource[i]).append(';').toString();
        }
        return result;
    }
    public static String[] StringToStringArray(String resource){
        if (resource==null){
            return null;
        }
        return resource.split(";");
    }
}
